<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html">
<ui:composition template="/WEB-INF/views/editDialog.xhtml">
    <f:loadBundle var="msg" basename="pl.pawluk.inz.web.SpringResourceBundle"/>
    <ui:define name="editDialogHeader"><h:outputText value="#{msg.editCourse}"/></ui:define>
    <ui:define name="editDialogBody">
        <p:outputLabel for="cName" value="#{msg.courseName}"/>
        <p:inputText id="cName" value="#{coursesBean.course.name}"/>
        <p:outputLabel for="cStart" value="#{msg.begin}"/>
        <p:calendar value="#{coursesBean.course.start}" id="cStart" showOn="button"/>
        <p:outputLabel for="cStop" value="#{msg.end}"/>
        <p:calendar value="#{coursesBean.course.stop}" id="cStop" showOn="button"/>
    </ui:define>
    <ui:define name="editDialogSaveCommand">
        <f:actionListener binding="#{coursesBean.updateSelectedRow}"/>
    </ui:define>
</ui:composition>
</html>